package com.polymathcoder.dpastry.api.pastry;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: Drew
 * Date: Jul 5, 2010
 * Time: 12:34:16 AM
 * To change this template use File | Settings | File Templates.
 */
public interface NodeHandle extends Serializable {
    public static final int PROXIMITY_CHANGED = 1;
    public static final int DECLARED_DEAD = 2;
    public static final int DECLARED_LIVE = 3;

    public Id getId();

    public boolean isAlive();

    public int proximity();

    public boolean checkLiveness();    
}
